package harvard.cscie160.hw7.project;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;


/**
 * 
 * @author M Bret Blackford
 *
 */
public class ATMFactoryImpl extends UnicastRemoteObject implements ATMFactory {

	private BankInterface banc;


	protected ATMFactoryImpl(BankInterface bank) throws RemoteException {
		super();
		this.banc = bank;
	}


	public ATM getATM() throws RemoteException {
		return new ATMImpl(banc);
	}

}
